home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1997 #1 / Amiga Plus CD - 1997 - No. 01.iso / demo-versionen / burnit_demo / install_burnit < prev    next >
Text File  |  1994-12-31  |  5KB  |  264 lines

  1. ;
  2. ; $VER: Install BurnItDemo V1.00 (09.09.1996)
  3. ; This Install-script contains to BurnItDemo V1.00 ©1996 by DnS
  4. ;
  5. (if (= (exists "Env:Language") 1)
  6.     ; GetEnv reports "String too long" if the variable doesn't exist! :(
  7.     (set @language (getenv "language"))
  8. )
  9.  
  10. ;**************************************************************************
  11. ; English Installation
  12.  
  13. (set default-lang 1)
  14.  
  15. (set #bad-kick
  16.     "You must have AmigaOS Release 3.0 or newer to use BurnIt."
  17. )
  18.  
  19. (set #bad-cpu
  20.     "You must have a 68020 CPU or biger to use BurnIt."
  21. )
  22.  
  23. (set #welcome
  24.     (cat
  25.         "\n\n\nWelcome to the BurnItDemo installation.\n\n"
  26.         "   BurnIt ©1996, DnS."
  27.     )
  28. )
  29.  
  30. (set #install-parts "Please select the parts you wish to install")
  31.  
  32. (set #item-BurnIt "BurnIt")
  33.  
  34. (set #item-BurnIt-guide "BurnIt_E.guide")
  35.  
  36. (set #item-locale "Translations")
  37.  
  38. (set #where-BurnIt
  39.     (cat
  40.         "Where do you wish to install BurnIt.\n The directory 'BurnIt' will be created if it is not there."
  41.     )
  42. )
  43.  
  44. (set #which-language "Which languages should be installed?")
  45.  
  46. (set #copy "Copying %s to %s...")
  47.  
  48. (set #help "no help available...")
  49.  
  50. (set #regis "BurnIt Registration")
  51.  
  52. ;**************************************************************************
  53. ; Deutsche Installation
  54.  
  55. (if (= @language "deutsch")
  56.     (
  57.         (set default-lang 2)
  58.  
  59.         (set #bad-kick
  60.             (cat
  61.                 "Tut mir Leid!\n"
  62.                 "Aber Sie müßen AmigaOS Release 3.0 oder neur haben für BurnIt."
  63.             )
  64.         )
  65.         (set #bad-cpu
  66.             (cat
  67.                 "Tut mir Leid!\n"
  68.                 "Aber Sie müßen eine 68020 CPU oder größer haben für BurnIt."
  69.             )
  70.         )
  71.         (set #welcome
  72.             (cat
  73.                 "\n\n\nWillkommen zu der Installation von BurnItDemo.\n\n"
  74.                 "BurnIt ©1996 DnS."
  75.             )
  76.         )
  77.  
  78.         (set #install-parts "Wählen Sie bitte die Teile, die Sie installieren wollen.")
  79.  
  80.         (set #item-BurnIt "BurnIt")
  81.  
  82.         (set #item-BurnIt-guide "BurnIt_D.guide")
  83.  
  84.         (set #item-locale "Kataloge")
  85.  
  86.         (set #where-BurnIt "Wo wollen sie BurnIt installieren ?\n Ein Verzeichnis 'BurnIt' wird erstellt.")
  87.  
  88.         (set #which-language "Welche Sprachen sollen installiert werden?")
  89.  
  90.         (set #copy "Kopiere %s nach %s...")
  91.  
  92.         (set #help "Keine Hilfe verfügbar...")
  93.  
  94.         (set #regis "BurnIt registrieren...")
  95.  
  96.     )
  97. )
  98.  
  99. ;**************************************************************************
  100. ; the installaion script
  101.  
  102. (set @default-dest "")
  103.  
  104. ; Check Kickstart version. Exit if not at least 3.0
  105. (if (< (/ (getversion) 65536) 39)
  106.         (abort #bad-kick)
  107. )
  108.  
  109. ; Check CPU. Exit if < 60020
  110. (if (patmatch "68020" (database "cpu"))
  111.         (abort #bad-cpu)
  112. )
  113.  
  114. (message #welcome)
  115.  
  116. (welcome)
  117.  
  118. (set install-files
  119.     (askoptions
  120.         (prompt #install-parts)
  121.         (help   @askoptions-help)
  122.         (choices
  123.             #item-BurnIt
  124.             #item-BurnIt-guide
  125.             #item-locale
  126.         )
  127.         (default 7)
  128.     )
  129. )
  130.  
  131. (if (IN install-files 0)
  132.     (set BurnIt-dest
  133.         (askdir
  134.             (prompt  #where-BurnIt)
  135.             (help    @askdir-help)
  136.             (default "Work:")
  137.         )
  138.     )
  139. )
  140.  
  141. (set where BurnIt-dest)
  142.  
  143. (if
  144.     (<
  145.         (exists
  146.             (tackon BurnIt-dest "BurnIt")
  147.         )
  148.     2)
  149.     (makedir
  150.         (tackon BurnIt-dest "BurnIt")
  151.         (infos)
  152.     )
  153. )
  154.  
  155. (set where (tackon BurnIt-dest "BurnIt"))
  156. (set @default-dest where)
  157.  
  158. (if (IN install-files 1)
  159.     (set guide-dest @default-dest)
  160. )
  161.  
  162. (set languages 0)
  163.  
  164. (if (IN install-files 2)
  165.     (set lang
  166.         (askoptions
  167.             (prompt  #which-language)
  168.             (help    @askoptions-help)
  169.             (choices
  170.                 "English"
  171.                 "Deutsch"
  172.             )
  173.             (default default-lang)
  174.         )
  175.     )
  176. )
  177.  
  178. ; And now do the actual installation
  179.  
  180. (complete 0)
  181.  
  182. (if (IN install-files 0)
  183.     (copyfiles
  184.         (prompt (#copy "BurnIt" @default-dest))
  185.         (source "BurnIt")
  186.         (dest   @default-dest)
  187.         (help   @copyfiles-help)
  188.         (noposition)
  189.         (infos)
  190.         (confirm)
  191.     )
  192. )
  193.  
  194. (if (IN install-files 0)
  195.     (copylib
  196.         (prompt (#copy "asyncio.library" "Libs:"))
  197.         (help @copylib-help)
  198.         (source "asyncio.library")
  199.         (dest "Libs:")
  200.         (confirm)
  201.     )
  202. )
  203.  
  204. (complete 50)
  205.  
  206. (if (IN install-files 1)
  207.     (
  208.         (copyfiles
  209.             (prompt (#copy #item-BurnIt-guide guide-dest))
  210.             (source #item-BurnIt-guide)
  211.             (help   @copyfiles-help)
  212.             (dest   guide-dest)
  213.             (newname "BurnIt.guide")
  214.             (infos)
  215.             (noposition)
  216.             (confirm)
  217.         )
  218.     )
  219. )
  220.  
  221. (complete 75)
  222.  
  223. (if (IN install-files 2)
  224.     (
  225.         (set n 0)
  226.  
  227.         (while
  228.             (set language
  229.                 (select n
  230.                     "English"
  231.                     "Deutsch"
  232.                     ""
  233.                 )
  234.             )
  235.  
  236.             (
  237.                 (if (AND (IN lang n) (<> 0 n))
  238.                     (
  239.                         (set catalog
  240.                             (tackon "Catalogs"
  241.                                 (tackon language "BurnIt.catalog")
  242.                             )
  243.                         )
  244.                         (set destination (tackon "Locale:Catalogs" language))
  245.  
  246.                         (copyfiles
  247.                             (prompt (#copy catalog destination))
  248.                             (source catalog)
  249.                             (dest   destination)
  250.                             (help @copyfiles-help)
  251.                         )
  252.                     )
  253.                 )
  254.  
  255.                 (set n (+ n 1))
  256.             )
  257.         )
  258.     )
  259. )
  260. (set BurnIticon-dest (tackon @default-dest "BurnIt"))
  261.  
  262. (complete 100)
  263. (exit)
  264.